﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace RCREEE.Library.Entities
{
   public class User
    {
        #region Private fields

        private int _userId;
        private string _fullName;
        private string _phoneNumber;
        private string _mobileNumber;
        private string _email;
        private string _userName;
        private string _password;
        private bool _isAdmin;

        private List<UserPermission> _userPermissions =new List<UserPermission>();

        #endregion

        #region Public properties

        public int UserId
        {
            get { return _userId; }
            set { _userId = value; }
        }

        public string FullName
        {
            get { return _fullName; }
            set { _fullName = value; }
        }

        public string PhoneNumber
        {
            get { return _phoneNumber; }
            set { _phoneNumber = value; }
        }

        public string MobileNumber
        {
            get { return _mobileNumber; }
            set { _mobileNumber = value; }
        }

        public string Email
        {
            get { return _email; }
            set { _email = value; }
        }

        public List<UserPermission> UserPermissions
        {
            get { return _userPermissions; }
            set { _userPermissions = value; }
        }

       public string UserName
       {
           get { return _userName; }
           set { _userName = value; }
       }

       public string Password
       {
           get { return _password; }
           set { _password = value; }
       }

       public bool IsAdmin
       {
           get { return _isAdmin; }
           set { _isAdmin = value; }
       }

       #endregion

        #region Constractor
        public User()
        {
            UserPermissions = new List<UserPermission>();
        }
        #endregion


    }
}
